#include "GlmMesh.h"
#include <iostream>

GlmMesh::GlmMesh()
{
	m_model = 0;
}

GlmMesh::~GlmMesh()
{

	//this causes a crash but i'm not sure why
	//glmDelete(m_model);
}

bool GlmMesh::Load(const std::string& filename)
{
	m_model = glmReadOBJ(filename.c_str());
	glmUnitize(m_model);
	return true;
}

void GlmMesh::Draw()
{
		glmDraw(m_model, GLM_SMOOTH | GLM_TEXTURE);
}
void GlmMesh::Unload()
{
	glmDelete(m_model);
}